aboutsummaryrefslogtreecommitdiff
path: root/src/app/kdrama/[id]
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-04-07 19:30:25 +0530
committerGitHub <[email protected]>2024-04-07 19:30:25 +0530
commit1cca92c67651972e6671bfbd7fee325cccd64690 (patch)
tree2c569fcd87048af5d3b2fd23a89b28c50565a109 /src/app/kdrama/[id]
parentMerge pull request #3 from real-zephex/kdrama-section-rewrite (diff)
parentidek (diff)
downloaddramalama-1cca92c67651972e6671bfbd7fee325cccd64690.tar.xz
dramalama-1cca92c67651972e6671bfbd7fee325cccd64690.zip
Merge pull request #4 from real-zephex/cloudflare-fix
Cloudflare fix
Diffstat (limited to 'src/app/kdrama/[id]')
-rw-r--r--src/app/kdrama/[id]/page.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/kdrama/[id]/page.jsx b/src/app/kdrama/[id]/page.jsx
index baaf24e..8f0fa9c 100644
--- a/src/app/kdrama/[id]/page.jsx
+++ b/src/app/kdrama/[id]/page.jsx
@@ -3,6 +3,8 @@ import Image from "next/image";
import EpisodesButtons from "./buttons";
import PreFetchVideoLinks from "../components/cacher";
+export const runtime = "edge";
+
export default async function DramaInfo({ params }) {
const id = decodeURIComponent(params.id);
const info = await getDramaInfo(id);
@@ -16,7 +18,7 @@ export default async function DramaInfo({ params }) {
<div className={styles.TitleContainer}>
<p>{info.title}</p>
<Image
- src={info.image}
+ src={`https://sup-proxy.zephex0-f6c.workers.dev/api-content?url=${info.image}`}
width={160}
height={240}
alt="Drama Poster"